﻿#ifndef CONFIGCOMMAND_H
#define CONFIGCOMMAND_H

#include "/RapidJson/AIGCJson.hpp"

using namespace std;
using namespace aigc;

/**
 * @brief 服务端发给设备端的配置命令报文(UDP, 服务端->设备端)
 */
class ConfigCommand
{
public:
    string cmdType = "CONFIG";
    string requestNo;
    int    deviceNo;
    string serverIP;
    int    serverPort;
    int    layerCount;
    int    cellCount;
    string clientIP;
    int    clientPort;
    string devLogo;
    string devTitle;
    string devName;

    AIGC_JSON_HELPER(cmdType, requestNo, deviceNo, serverIP, serverPort, layerCount, cellCount, clientIP, clientPort, devLogo, devTitle, devName)
};

#endif // CONFIGCOMMAND_H
